package models
import (
	"github.com/astaxie/beego/orm"
	"time"
)


//用户控制记录的数组结构
type WarningLog struct {
	Id          	int64		`orm:"unique;auto"`
	ErrorMsg		string
	TimeStamp		time.Time	`orm:"auto_now_add;type(datetime)"`
}

func init() {
	// 需要在init中注册定义的model
	orm.RegisterModel(new(WarningLog))
}
func InsertWarningLog(log *WarningLog)  {

}
//func getWarningLogTime(t time)  {
//
//}

func getWarningLogById(id uint64)  {

}

//func getAllLog() (logs[] WarningLog){
//
//}
